/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package persistence;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author asbriglio
 */
@Embeddable
public class IdentityInfo implements Serializable {

    @Column(name="PRENOM", nullable=false)
    private String firstname;
    
    @Column(name="NOM",nullable=false)//attribut nullable utilisés que dans le cas de la génération
    private String lastname;
    
    @Column(name="DATE_NAISS")
    @Temporal(TemporalType.DATE)
    private Date dob; //date of birth = date de naissance

   
    public Date getDob() {
        return dob;
    }

    public void setDob(Date dob) {
        this.dob = dob;
    }

    
    public String getFirstname() {
        return firstname;
    }

    public void setFirstname(String firstname) {
        this.firstname = firstname;
    }

    
    public String getLastname() {
        return lastname;
    }

    public void setLastname(String lastname) {
        this.lastname = lastname;
    }


}
